<meta http-equiv="Content-Type"
content="text/html;charset=UTF-8">

<?php
if (isset ($_REQUEST["køn"])){
}
echo " ";
if (isset ($_REQUEST["alder"])){
}
echo " ";
if (isset ($_REQUEST["gift"])){
}
?>

<form action="forsikringsberegner.php">
køn: <input type="text" name="køn" />
<br />
alder: <input type="text" name="alder" />
<br />
gift: <input type="text" name="gift" />
<input type="submit" />
</form>

<?php
if(isset($_REQUEST["alder"])){
	$alder = $_REQUEST["alder"];
	$køn = $_REQUEST["køn"];
	$gift = $_REQUEST["gift"];
$pris = 500;
if ($alder < 25 && $køn == "mand" && $gift == "nej"){
	$pris = $pris + 1500;
}
elseif ($køn == "kvinde" || $gift == "ja"){
	$pris = $pris - 200;
}
elseif ($alder >= 46 && $alder <=64){
	$pris = $pris - 100;
}
echo($pris);
}
?>